
import 'package:json_annotation/json_annotation.dart';

//定义生成的文件 flutter pub run build_runner build --delete-conflicting-outputs
part 'bean_chengzhong.g.dart';


@JsonSerializable(explicitToJson: true)
class Bean_Chengzhong{

   String? itemName;
   String? price;
   dynamic weighingNumber;//去皮
   List<BeanWeighValueData>? presetGoodsWeighingList;//去皮

  Bean_Chengzhong();

   //添加固定格式
   factory Bean_Chengzhong.fromJson(Map<String, dynamic> json) => _$Bean_ChengzhongFromJson(json);
   Map<String, dynamic> toJson() => _$Bean_ChengzhongToJson(this);

}


@JsonSerializable(explicitToJson: true)
class BeanWeighValueData{

  dynamic weighingNumber;
   String? weighingName;
   bool isUserSelect=false;

  BeanWeighValueData({this.isUserSelect=false});

  //添加固定格式
  factory BeanWeighValueData.fromJson(Map<String, dynamic> json) => _$BeanWeighValueDataFromJson(json);
  Map<String, dynamic> toJson() => _$BeanWeighValueDataToJson(this);

}
